package com.lsc.study.datastruct;

import java.util.HashMap;
import java.util.Hashtable;

public class HashTableDemo {


    public static void main(String[] args) {

        HashMap<Integer, String> hashMap = new HashMap<>();
        hashMap.put(null, "hanamaki");
        hashMap.put(null, "andy");
        hashMap.put(1, null);
        hashMap.put(2, null);
        hashMap.put(3, null);

        System.out.println(hashMap);

        Hashtable<Integer, String> hashtable = new Hashtable<>();
        hashtable.put(1, null);
        System.out.println(hashtable);




    }
}
